package com.lonewalker.sparrow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lonewalker.sparrow.entity.UserInfo;
import com.lonewalker.sparrow.req.UserInfoQueryReq;
import org.apache.ibatis.annotations.Param;

/**
 * @author: lonewalker
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {


    /**
     * 分页查询用户信息
     *
     * @param page         分页信息
     * @param requestParam 相关查询参数
     * @return 用户数据
     */
    Page<UserInfo> pageUserInfo(Page<UserInfo> page, @Param("requestParam") UserInfoQueryReq requestParam);
}
